import http from "@/api";

export const getBannerList = () => {
  return http.post(`/admin/distribution_channel/get_banner_url`);
};
export const getMLBannerList = () => {
  return http.post(`/admin/distribution_channel/get_official_banner`);
};

interface IUpdateBannerParams {
  channel_url?: string;
}
export const updateBanner = (params: IUpdateBannerParams) => {
  return http.post(`/admin/distribution_channel/banner_url`, params);
};

interface IUpdateMLBannerParams {
  banner_url?: string;
  cover_url?: string;
  title?: string;
  status?: number;
  content?: string;
}
export const updateMLBanner = (params: IUpdateMLBannerParams) => {
  return http.post(`/admin/distribution_channel/save_official_banner`, params);
};
